package com.zyx.th2.tr1;

public class Thread01 extends Thread{
    private Thread02 thrad02;

    @Override
    public void run() {
        for(int i=0;i<10;i++) {
            System.out.println("黑龙:" + i);
            if (i == 5) {
                Thread.yield();
            }
        }
    }

    public Thread02 getTh2() {
        return thrad02;
    }


}
